INCLUDE_DIRECTORIES (../)
INCLUDE_DIRECTORIES (./)

ADD_LIBRARY(
        EWAUIWidget

        EWAUIWidgetHeader.hpp

        EWAUIWidget.hpp
        EWAUIWidget.cpp

        EWAUILayoutParams.hpp
        EWAUILayoutParams.cpp

        EWAUIWidgetButton.hpp
        EWAUIWidgetButton.cpp

        EWAUILayoutType.hpp
        EWAUILayoutType.cpp

        EWAUIWidgetHorizontalSegBar.hpp
        EWAUIWidgetHorizontalSegBar.cpp

        EWAUIWidgetVerticalSegBar.hpp
        EWAUIWidgetVerticalSegBar.cpp

        EWAUILayout.hpp
        EWAUILayout.cpp

        EWAUIWidgetVerticalScroll.hpp
        EWAUIWidgetVerticalScroll.cpp

        EWAUIProgressBar.hpp
        EWAUIProgressBar.cpp

        EWAUIFrame.hpp
        EWAUIFrame.cpp

        EWAUIWidgetScroll.hpp
        EWAUIWidgetScroll.cpp
)

SET(HEAD_FILES
        EWAUIWidgetHeader.hpp
        EWAUIWidget.hpp
        EWAUILayoutParams.hpp
        EWAUIWidgetButton.hpp
        EWAUILayoutType.hpp
        EWAUIWidgetHorizontalSegBar.hpp
        EWAUIWidgetVerticalSegBar.hpp
        EWAUILayout.hpp
        EWAUIWidgetVerticalScroll.hpp
        EWAUIProgressBar.hpp
        EWAUIFrame.hpp
        EWAUIWidgetScroll.hpp
        )

INSTALL(FILES ${HEAD_FILES} DESTINATION include/EWAUIWidget)
INSTALL(
        TARGETS EWAUIWidget
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
)